<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="" autocomplete="off">
   <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-season_time" data-rule="required" class="form-control"   name="row[name]" type="text" value="{$row.name}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Season.Season_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-season_time" data-rule="required" class="form-control datetimepicker form-control" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[season_time]" type="text" value="{$row.season_time}">
        </div>
    </div>
		 <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Season.Reg_level')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select  id="c-reg_level" data-rule="required" class="form-control selectpicker" name="row[reg_level]">
                {foreach name="$WeekInfo['regLevelList']" item="vo"}
                    <option value="{$key}"  {in name="key" value="$row.reg_level"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Address')}:</label>
        <div class="col-xs-12 col-sm-8">
		{:Form::cxselect('ajax/area', ['province','city','area'], ['province'=>$row.province, 'city'=>$row.city,'area'=>$row.area])}
        </div>
    </div>
	 <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Season.Gift_books')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-gift_books"  class="form-control form-control" name="row[gift_books]" type="text" value="{$row.gift_books}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">详细{:__('Address')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-address" data-rule="required" class="form-control form-control" name="row[address]" type="text" value="{$row.address}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Season.Lecturer_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-lecturer_id" data-rule="required" data-source="/api/base/lecturer"  data-params='{"custom[delete_status]":"1"}' class="form-control selectpage form-control" name="row[lecturer_id]" type="text" value="{$row.lecturer_id}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Season.Subject_id')}:</label>
        <div class="col-xs-12 col-sm-8">
             <select  id="c-subject_id" data-rule="required" class="form-control selectpicker" name="row[subject_id]">
                {foreach name="$WeekInfo['Subject_id']" item="vv"}
                    <option value="{$vv['id']}" {if $vv['id'] == $row.subject_id }selected{/if}>{$vv['name']}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Desc')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-desc" class="form-control  form-control" rows="5" name="row[desc]" cols="50">{$row.desc}</textarea>
        </div>
    </div>
   
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
